﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace project_web2.AdminTool
{
    public partial class ManagerPromotions : System.Web.UI.Page
    {
        DAL dal = new DAL();
        protected void Page_Load(object sender, EventArgs e)
        {
            grManagerPromotions.DataSource = loadManagerPromotins();
            grManagerPromotions.DataBind();
        }
        private DataTable loadManagerPromotins()
        {
            string sql = "select * from Promotions";
            return dal.get_data(sql);
        }
    }
}